package com.work.game.home.ui.model.vo;

import com.work.game.utils.RSAEncrypt;

import java.io.Serializable;

import cn.hutool.core.util.StrUtil;

public class CollectVo implements Serializable {
    private String pgId;
    private String token;

    public String getPgId() {
        return pgId;
    }

    public void setPgId(String pgId) {
        this.pgId = pgId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        if (StrUtil.isNotEmpty(token)) {
            this.token = RSAEncrypt.encrypt(token);
        } else {
            this.token = token;
        }
    }
}

